package org.example.booksystem.controller;

import org.example.booksystem.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/user")
public class UserInfoController {
    @Autowired
    private UserInfoService service ;

    @RequestMapping("/login")
    public boolean login(String userName , String password , HttpSession session){
        boolean check = service.loginCheck(userName,  password , session) ;
        return check ;
    }
    @RequestMapping("/checkLogin")
    public void checkLogin(){

    }

}
